package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName sys_province
 */
@TableName(value ="sys_province")
@Data
public class SysProvince implements Serializable {
    /**
     * 省份id
     */
    @TableId(type = IdType.AUTO)
    private Integer provId;

    /**
     * 省份名称
     */
    private String provName;

    /**
     * 省份_编号
     */
    private String provNum;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysProvince other = (SysProvince) that;
        return (this.getProvId() == null ? other.getProvId() == null : this.getProvId().equals(other.getProvId()))
            && (this.getProvName() == null ? other.getProvName() == null : this.getProvName().equals(other.getProvName()))
            && (this.getProvNum() == null ? other.getProvNum() == null : this.getProvNum().equals(other.getProvNum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProvId() == null) ? 0 : getProvId().hashCode());
        result = prime * result + ((getProvName() == null) ? 0 : getProvName().hashCode());
        result = prime * result + ((getProvNum() == null) ? 0 : getProvNum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", provId=").append(provId);
        sb.append(", provName=").append(provName);
        sb.append(", provNum=").append(provNum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}